/**
 * Author: luoqi
 * Created Date: 2025-11-11 23:24:39
 * Last Modified: 2025-11-15 03:25:13
 * Modified By: luoqi at <**@****>
 * Copyright (c) 2025 <*****>
 * Description:
 */

#ifndef _IO_PORT_H_
#define _IO_PORT_H_

typedef enum {
    GPO_BLINK,
    GPO_DRV_ENA,
    GPO_A15,
} GPOPort;

typedef enum {
    GPI_B8,
    GPI_B9,
} GPIPort;

typedef enum {
    IO_LOW,
    IO_HIGH,
} IOState;

int io_set(GPOPort io, IOState state);

int io_toggle(GPOPort io);

IOState io_get(GPIPort io);

void io_encz2_exti_override(void);

void io_encz3_exti_override(void);

#endif
